package com.example.mobile2032021606129ly0307;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    TextView tvResult;
    int result;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tvResult=findViewById(R.layout.activity_main);
        tvResult.setText("广东职业技术学院信息工程系移动203班");
        tvResult.setTextColor(0x55882266);


        result=0;
        for(int i=0;i<10;i++) {
            result += i;
        }
            result = myAdd(result, 10);
            tvResutl.setText(String.valueOf(result));

            private int myAdd ( int result, int i){
                return result1 + i;
            }

        }
        }

